import React from 'react'
import styled, { keyframes } from 'styled-components'

export default function App() {
  const miaohao = keyframes`
    from{
      transform:rotate(0deg);
    }
    to{
      transform:rotate(360deg);
    }
  `

  const Mydiv = styled.div`
    animation: ${miaohao} 1s infinite;
    width:100px;
    height:100px;
    background-color:red;
  `
  return (
    <div>
      <Mydiv></Mydiv>
    </div>
  )
}
